package test1;

import java.util.TreeMap;

public class test {
    public static void main(String[] args) {
        Student s1=new Student("zhangsan",18);
        Student s2=new Student("lisi",20);
        Student s3=new Student("wangwu",19);

        TreeMap<Student,String> tm=new TreeMap();

        tm.put(s1,"广东");
        tm.put(s2,"广西");
        tm.put(s3,"福建");

        System.out.println(tm);

    }
}
